package com.woniuxy.charin.service;

import com.woniuxy.charin.model.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author KOO
* @description 针对表【permission】的数据库操作Service
* @createDate 2024-12-26 16:45:32
*/
public interface PermissionService extends IService<Permission> {

    List<Permission> getPermissions();

    List<Integer> getPermissionIdByRole(Integer roleId);

    void assignPermission(Long roleId, List<Integer> permissionIds);
}
